<%--
  Created by IntelliJ IDEA.
  User: ht
  Date: 2023/3/12
  Time: 12:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>SpringMVC请求及参数绑定</title>
</head>
<body>
    <h2>添加客户信息</h2>
    <!--绑定默认参数类型<form action="add.do"> -->
    <!--绑定简单数据类型<form action="simple.do">-->
    <!-- 绑定POJO类型 -->
    <form action="requestParam.do">
<%--    <form action="pojo.do">--%>
        <!--绑定简单数据类型,@RequestParam注解使用<form action="requestParam.do">-->
        <table>
            <tr>
                <td> 用户名：</td><td><input name="name" type="text"></td>
            </tr>
            <tr>
                <td>年龄：</td><td><input name="age" type="text"></td>
            </tr>
            <tr>
                <td> 兴趣爱好：</td><td>
                <input type="checkbox" name="hobby" value="游泳">游泳<br>
                <input type="checkbox" name="hobby" value="阅读">阅读<br>
                <input type="checkbox" name="hobby" value="旅游">旅游<br></td>
            </tr>
            <tr><td colspan="2" align="center"><button type="submit" >提交</button></td></tr>
        </table>
    </form>

</body>
</html>
